import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import permission from './modules/permission'
import settings from './modules/settings'
import user from './modules/user'
import intendedCustomer from './modules/intendedCustomer'
import role from '@/store/modules/role'
import unit from '@/store/modules/unit'
import brand from '@/store/modules/brand'
import craft from '@/store/modules/craft'
import project from '@/store/modules/project'
import budget from '@/store/modules/budget'
import category from '@/store/modules/category'
import maincost from '@/store/modules/maincost'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    permission,
    settings,
    user,
    intendedCustomer,
    role,
    unit,
    brand,
    craft,
    project,
    budget,
    category,
    maincost
  },
  getters
})

export default store
